package com.fengmi.api.goods;

import com.fengmi.goods.MallGoods;
import com.fengmi.goods.MallGoodsSku;
import com.fengmi.vo.CatCascaderVO;
import com.fengmi.vo.CatHotGoodsVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 作者：铁蛋
 * 时间：2021/10/15 15:05
 * 描述：永无Bug
 */
@FeignClient("fengmi-goods")
@RequestMapping("goods")
public interface GoodsApi {
    @RequestMapping("cat/findCat")
    public List<CatCascaderVO> findCat();

    @RequestMapping("findCatHotGoods")
    public List<CatHotGoodsVO>  findCatHotGoods();
    @RequestMapping("findGoodsAudited")
    public List<MallGoods>  findGoodsAudited();
    @RequestMapping("findGoodsDetail/{spuId}")
    public MallGoods findGoodsDetail(@PathVariable String spuId);
    @RequestMapping("findSkuById/{skuId}")
    public MallGoodsSku findSkuById(@PathVariable String skuId);
}
